home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 1
/
Precision Software Applications Silver Collection Volume One (PSM) (1993).iso
/
tutor
/
t1pascal.exe
/
PROCED1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-05-25
|
454b
|
24 lines
PROGRAM first_procedure_call;
VAR count : INTEGER;
PROCEDURE write_a_header;
BEGIN
WRITELN('This is the header');
END;
PROCEDURE write_a_message;
BEGIN
WRITELN('This is the message and the count is',count:4);
END;
PROCEDURE write_an_ending;
BEGIN
WRITELN('This is the ending message');
END;
BEGIN (* main program *)
write_a_header;
FOR count := 1 TO 8 DO write_a_message;
write_an_ending;
END. (* of main program *)